package main.java.auxiliary;

public enum Direction {
    LEFT {
        @Override
        public boolean left() {
            return true;
        }
    },
    RIGHT {
        @Override
        public boolean right() {
            return true;
        }
    },
    UP,
    DOWN;

    public boolean left() {
        return false;
    }

    public boolean right() {
        return false;
    }
}
//为什么这里需要重写呢